<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>我的钱包</title>
    <meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js{$Think.config.RESOURCE_VER}"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.alert.js{$Think.config.RESOURCE_VER}"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
    <link href="{$Think.config.RESOURCEURL}wx_assets/iconfont/iconfont.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
    <style type="text/css">
        @font-face {
            font-family: 'iconfont';  /* project id 223509 */
            src: url('//at.alicdn.com/t/font_o4of1iyafblf2yb9.eot');
            src: url('//at.alicdn.com/t/font_o4of1iyafblf2yb9.eot?#iefix') format('embedded-opentype'),
            url('//at.alicdn.com/t/font_o4of1iyafblf2yb9.woff') format('woff'),
            url('//at.alicdn.com/t/font_o4of1iyafblf2yb9.ttf') format('truetype'),
            url('//at.alicdn.com/t/font_o4of1iyafblf2yb9.svg#iconfont') format('svg');
        }
        .iconfont{
            font-family: iconfont;
        }
        body{
            background-color:#F5F4F9;
            color:#333333
        }
        .title{
            <if condition="$mallHue.mallHue eq '1'">
            background-color:#3c8bce;
            <else/>
            background-color:#F75493;
            </if>
            padding: 34px 10px 24px;
            font-size: 15px;
            box-sizing: border-box;
            color: rgba(255,255,255,0.8);
        }
        .title>span{
            font-size:65px;
            margin-top: 20px;
            display: block;
            color: white;
        }
        li{
            height:47px;
            line-height:47px;
            font-size:16px;
            background: #fff;
            margin-bottom: 10px;
            padding: 0 12px;
        }
        li>i:first-child{
            color:#FF9628;
            margin-right:10px;
            font-size:29px;
        }
        li>i:last-child{
            color:#CECED0;
            font-size:29px;
            float:right;
        }
        li>span{
            vertical-align: top;
        }
    </style>
</head>
<body>
    <div class="title">
        <h2>钱包余额(元)</h2>
        <span>{$balance|default=0}</span>
    </div>
<ul>
    <li onclick="toBill()">
        <i class="iconfont">&#xe676;</i>
        <span>账单</span>
        <i class="iconfont">&#xe6a9;</i>
    </li>
    <if condition="$payPassword eq 1">
      <li onclick="toChangePaypassword()">
          <i class="iconfont" style="color: #28bbff;">&#xe6d2;</i>
          <span>修改支付密码</span>
          <i class="iconfont">&#xe6a9;</i>
      </li>
      <li onclick="toForgotPaypassword()">
          <i class="iconfont" style="color: #28bbff;">&#xe6d2;</i>
          <span>忘记支付密码</span>
          <i class="iconfont">&#xe6a9;</i>
      </li>
    <else />
      <li onclick="toSetPaypassword()">
          <i class="iconfont" style="color: #28bbff;">&#xe6d2;</i>
          <span>设置支付密码</span>
          <i class="iconfont">&#xe6a9;</i>
      </li>
    </if>
</ul>
</body>
<script>
    function toBill(){
        location.href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=purse&method=getBill';
    }

    function toChangePaypassword(){
        location.href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=purse&method=contrastPayPassword';
    }

    function toForgotPaypassword(){
        location.href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=purse&method=contrastPhoneCode';
    }

    function toSetPaypassword(){
        location.href='{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=purse&method=setPayPassword';
    }

    wx_share.init({
        "pkg":{
            "appId": '{$pkg.appId}',
            "timestamp": '{$pkg.timestamp}',
            "nonceStr": '{$pkg.nonceStr}',
            "signature": '{$pkg.signature}'
        },
        "hideAllnone":true
    });
</script>
</html>
